What you’ll build
- Multiple CrewAI agents (specialists) plus a coordinator agent.
- A workflow that sequences or hierarchically calls those agents.
- NDJSON streaming so CometChat shows progress as the coordinator works.
Prerequisites
- CrewAI project (crew-ai.mdx)
- Agent configs for each specialist (billing/support/research/etc.)
Steps
1
Define specialists
Add agents like
billing, support, and research with narrow goals and tools.2
Create a coordinator task
The coordinator inspects the user question, decides which specialists to call, and merges their outputs.
3
Choose a process
Use
Process.sequential for simple fan-out or Process.hierarchical if you want dynamic branching.4
Stream results
Keep the existing
/kickoff NDJSON stream; tool calls from sub-agents will appear in CometChat.Example configuration
src/crew_demo/config/agents.yaml
src/crew_demo/crew.py (excerpt)
src/crew_demo/config/tasks.yaml
CometChat setup
- Provider: CrewAI
- Agent ID:
coordinator - Deployment URL:
/kickoff